﻿using System;
using System.Data;
using System.Collections.Generic;
using He.Model;
namespace He.BLL
{
    /// <summary>
    /// Member
    /// </summary>
    public partial class member
    {
        #region  Method

        /// <summary>
        /// 检查用户名是否重复
        /// </summary>
        public bool Exists(string user_name)
        {
            return dal.Exists(user_name);
        }
        /// <summary>
        /// 是否存在会员
        /// </summary>
        public bool ExistsMember(int rank_id)
        {
            return dal.ExistsMember(rank_id);
        }
        /// <summary>
        /// 检查qq_openid是否存在
        /// </summary>
        public bool ExistsQQOpenid(string qq_openid)
        {
            return dal.ExistsQQOpenid(qq_openid);
        }
        /// <summary>
        /// 是否存在该记录
        /// </summary>
        public bool Exists(string user_name, string user_pwd)
        {
            return dal.Exists(user_name, user_pwd);
        }
        /// <summary>
        /// 是否存在Email
        /// </summary>
        public bool ExistsEmail(string email)
        {
            return dal.ExistsEmail(email);
        }
        /// <summary>
        /// 是否存在Email
        /// </summary>
        public bool ExistsEmail(string username, string email)
        {
            return dal.ExistsEmail(username, email);
        }
        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public He.Model.member GetModel(string user_name)
        {
            return dal.GetModel(user_name);
        }
        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public He.Model.member GetModelByOpenid(string openid)
        {
            return dal.GetModelByOpenid(openid);
        }
        /// <summary>
        /// 获得查询分页数据
        /// </summary>
        public DataSet GetPageList(int pageSize, int currentPage, string strWhere, string filedOrder)
        {
            return dal.GetPageList(pageSize, currentPage, strWhere, filedOrder);
        }

        #endregion  Method
    }
}

